import { extend } from './utils'

function createPage (options) {
  const mixins = options.mixins || []

  mixins.forEach(mixin => {
    extend(options, mixin.createPageMixin())
  })

  delete options.mixins

  Page(options)
}

export default createPage
